import request from '@/router/axios'

export function fetchList(query) {
    return request({
        url: '/supplier/businessMoneyLog/page',
        method: 'get',
        params: query
    })
}

export function addObj(obj) {
    return request({
        url: '/store/businessMoneyLog/',
        method: 'post',
        data: obj
    })
}

export function getObj(id) {
    return request({
        url: '/store/businessMoneyLog/' + id,
        method: 'get'
    })
}

export function delObj(id) {
    return request({
        url: '/store/businessMoneyLog/' + id,
        method: 'delete'
    })
}

export function putObj(obj) {
    return request({
        url: '/store/businessMoneyLog',
        method: 'put',
        data: obj
    })
}

export function casObj() {
    return request({
        url: '/store/businessMoneyLog/cas',
        method: 'get'
    })
}

export function remoteData(query) {
    return request({
        url: '/store/businessMoneyLog/remoteData',
        method: 'get',
        params: query
    })
}